<?php
return array(
	'defaultScope' => array(
		'condition' => "object_type ='MemberAccount'"
	),

	'attributeLabels' => array(
	),
	
	'rules' => array(
		array('isAgree','required', 'on'=>'register'),
		array('isAgree','safe')
	),

	'relations' => array(
		'profile' => array(ActiveRecord::HAS_ONE, 'MemberProfile', 'id'),
	),

	'cascade' => array(
		'profile',
	),

	'behaviors' => array(
		'stateHandle' => array(
			'class' => 'ModelState',
			'handleField' => 'status',
			'configName' => 'status.worker.audit',
			'configReader' => Yii::app()->config,
			'initState' => 'ST_NONE',
		),
	),

	'tableName' => 'member_account',
	
	'_import' => array(
		array('*', 'models.WorkerAccount//*'),
	),
);